package com.tofix.kidmall.repo;

import com.tofix.kidmall.entity.CartGoods;
import com.tofix.kidmall.entity.Goods;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.Set;

public interface CartGoodsRepo extends JpaRepository<CartGoods, String> {
    CartGoods findCartGoodsByCartId(String cartId);

    Set<CartGoods> findByGoodsChecked(Goods goods);
}
